<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:import href="../utilities/master-calendar.xsl"/>
<xsl:import href="../utilities/date-and-time.xsl"/>
<xsl:import href="../utilities/get-admin-menu.xsl"/>
<xsl:import href="../utilities/get-admin-vacations.xsl"/>


<xsl:template match="data">
	<xsl:variable name="is-client">			
		<xsl:for-each select="admin-clients/entry">
			<xsl:if test="@id = $entry-id">
				1
			</xsl:if>
		</xsl:for-each>
	</xsl:variable>
	
	<div class="grid_16" id="admin">
		<xsl:choose>
			<xsl:when test="/data/clients/entry/administrator = 'Yes'">
				<div class="grid_5 alpha">
					<xsl:call-template name="admin-menu"/>
				</div>
				
				<div class="grid_12 omega">
				
					<div id="admin_main" class="grid_12">
						<xsl:apply-templates select="vacations" mode="admin-vacations-form"/>
					</div>
										
				</div>
			</xsl:when>
		</xsl:choose>
	</div>
</xsl:template>
</xsl:stylesheet>